package org.compiere.model;

import java.sql.ResultSet;
import java.util.List;
import java.util.Properties;

public class MBankAccountAcct extends X_C_BankAccount_Acct 
{

	public MBankAccountAcct(Properties ctx, int C_BankAccount_Acct_ID,
			String trxName) 
	{
		super(ctx, C_BankAccount_Acct_ID, trxName);
	}
	
	public MBankAccountAcct (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

	public static MBankAccountAcct getOfBankAccount(Properties ctx, int C_BankAccount_ID, String trxName)
	{
		List<MBankAccountAcct> list = new Query(ctx, I_C_BankAccount_Acct.Table_Name, "C_BankAccount_ID=?", trxName)
		.setParameters(C_BankAccount_ID)
		.setOnlyActiveRecords(true)
		.list();
		
		if(list.size() > 0)
			return list.get(0);
		else
			return null;
	}
}
